package d01_satic;

import java.util.Random;

public class Register {
    public static void main(String[] args) {
        //注册验证码
        String code = "";
        String data="qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890";
        Random rend=new Random();
        for (int i = 0; i <5; i++) {
            int index=rend.nextInt(data.length());
            char c=data.charAt(index);
            code+=c;
        }
        System.out.println(code);
    }
}
